package com.bbchond.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.bbchond.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bbchond.mapper.UserMapper;
import com.bbchond.service.UserService;

@Service("userService")
public class UserServicelmpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	public List<User> getUsers() {
//		List<User> list = new ArrayList<User>();
//		list.add(new User(1, "1", "2"));
//		return list;
		return userMapper.getUsers();
	}

	@Override
	public List<BBSTopic> getBBSTopics() {
		return userMapper.getBBSTopics();
	}

	@Override
	public UserPunch getUserPunch(String userAccount) {
		return userMapper.getUserPunch(userAccount);
	}


	@Override
	public UserVerify getUserVerify(UserVerify userVerify) {
		return userMapper.getUserVerify(userVerify);
	}

	@Override
	public int UserRegister(User user) {
		return userMapper.UserRegister(user);
	}

	@Override
	public int updatePassword(User user) {
		return userMapper.updatePassword(user);
	}

	@Override
	public List<BBSReply> getBBSReply(int id) {
		return userMapper.getBBSReply(id);
	}

	@Override
	public int ReplyPost(BBSReply bbsReply) {
		return userMapper.ReplyPost(bbsReply);
	}

	@Override
	public User getUserName(String userAccount) {
		return userMapper.getUserName(userAccount);
	}

	@Override
	public int BBSPost(BBSTopic bbsTopic) {
		return userMapper.BBSPost(bbsTopic);
	}

	@Override
	public List<BBSTopic> getCharge() {
		return userMapper.getCharge();
	}

	@Override
	public Card getCardInfo(String userAccount) {
		return userMapper.getCardInfo(userAccount);
	}

	@Override
	public int registCard(PickCard pickCard) {
		return userMapper.registCard(pickCard);
	}

	@Override
	public int lostCard(String userAccount) {
		return userMapper.lostCard(userAccount);
	}

	@Override
	public List<CardCost> cardCost(String userAccount, String date) {
		return userMapper.cardCost(userAccount, date);
	}

	@Override
	public List<PickCard> getLostCard() {
		return userMapper.getLostCard();
	}

	@Override
	public List<PickCard> getLostCardByAccount(String userAccount) {
		return userMapper.getLostCardByAccount(userAccount);
	}

	@Override
	public List<DorScore> getScoreInfoByAccount(String userAccount) {
		return userMapper.getScoreInfoByAccount(userAccount);
	}

	@Override
	public int addFeedbackInfo(FeedBack feedBack) {
		return userMapper.addFeedbackInfo(feedBack);
	}

	@Override
	public int addPlaceChange(ChangePlace changePlace) {
		return userMapper.addPlaceChange(changePlace);
	}

	@Override
	public int addCheckIn(CheckInInfo checkInInfo) {
		return userMapper.addCheckIn(checkInInfo);
	}

	@Override
	public int addCheckOut(CheckOutInfo checkOutInfo) {
		return userMapper.addCheckOut(checkOutInfo);
	}

	@Override
	public int addDetentionInfo(DetentionInfo detentionInfo) {
		return userMapper.addDetentionInfo(detentionInfo);
	}

	@Override
	public List<VideoInfo> getVideoInfos() {
		return userMapper.getVideoInfos();
	}

	@Override
	public List<VideoInfo> getGoodVideoInfo() {
		return userMapper.getGoodVideoInfo();
	}

	@Override
	public List<VideoInfo> getGoodVideoInfoByType(String typeName) {
		return userMapper.getGoodVideoInfoByType(typeName);
	}

	@Override
	public List<VideoReply> getReplyInfo(int videoId) {
		return userMapper.getReplyInfo(videoId);
	}

	@Override
	public VideoInfo getVideoInfo(int videoId) {
		return userMapper.getVideoInfo(videoId);
	}

	@Override
	public ClassUser userVerify(ClassUser classUser) {
		return userMapper.userVerify(classUser);
	}

	@Override
	public ClassUser userInfo(String userAccount) {
		return userMapper.userInfo(userAccount);
	}

	@Override
	public Teacher teacherInfo(String teacherName) {
		return userMapper.teacherInfo(teacherName);
	}

	@Override
	public List<Teacher> getAllTeacherInfo() {
		return userMapper.getAllTeacherInfo();
	}

	@Override
	public int videoReplyPost(VideoReply videoReply) {
		return userMapper.videoReplyPost(videoReply);
	}

	@Override
	public int repairPost(RepairInfo repairInfo) {
		return userMapper.repairPost(repairInfo);
	}

	@Override
	public int classRegister(ClassUser classUser) {
		return userMapper.classRegister(classUser);
	}

	@Override
	public int updateClassUser(ClassUser classUser) {
		return userMapper.updateClassUser(classUser);
	}

	@Override
	public List<UserCollection> getCollectionInfo(String userAccount) {
		return userMapper.getCollectionInfo(userAccount);
	}

	@Override
	public int addCollectionInfo(UserCollection collection) {
		return userMapper.addCollectionInfo(collection);
	}

	@Override
	public int cancelCollectionInfo(UserCollection collection) {
		return userMapper.cancelCollectionInfo(collection);
	}

	@Override
	public int addCartInfo(UserCart userCart) {
		return userMapper.addCartInfo(userCart);
	}

	@Override
	public List<VideoInfo> getCartVideo(String userAccount) {
		return userMapper.getCartVideo(userAccount);
	}

	@Override
	public UserCollection isCollection(UserCollection userCollection) {
		return userMapper.isCollection(userCollection);
	}

	@Override
	public UserCart isInCart(UserCart userCart) {
		return userMapper.isInCart(userCart);
	}

	@Override
	public List<VideoInfo> getCollectionVideo(String userAccount) {
		return userMapper.getCollectionVideo(userAccount);
	}

	@Override
	public List<OderInfo> getOrderInfo(String userAccount) {
		return userMapper.getOrderInfo(userAccount);
	}

	@Override
	public StuInfo getStuInfo(String userAccount) {
		return userMapper.getStuInfo(userAccount);
	}

    @Override
    public int addClassFeedBack(ClassFeedBack classFeedBack) {
        return userMapper.addClassFeedBack(classFeedBack);
    }

	@Override
	public List<KnowInfo> getKnowInfo() {
		return userMapper.getKnowInfo();
	}

	@Override
	public List<RedWood> getRedWoodInfo() {
		return userMapper.getRedWoodInfo();
	}

    @Override
    public List<BrandInfo> getBrandInfo() {
        return userMapper.getBrandInfo();
    }

    @Override
    public List<FurnitureItem> getFurniture() {
        return userMapper.getFurniture();
    }

	@Override
	public FurnitureCollection isInCollection(FurnitureCollection collection) {
		return userMapper.isInCollection(collection);
	}

	@Override
	public List<FurnitureCollection> getFurnitureCollectionInfo(String userAccount) {
		return userMapper.getFurnitureCollectionInfo(userAccount);
	}

	@Override
	public int addFurnitureCollectionInfo(FurnitureCollection collection) {
		return userMapper.addFurnitureCollectionInfo(collection);
	}

	@Override
	public int cancelFurnitureCollectionInfo(FurnitureCollection collection) {
		return userMapper.cancelFurnitureCollectionInfo(collection);
	}

	@Override
	public int furnitureRegister(FurnitureUser user) {
		return userMapper.furnitureRegister(user);
	}

	@Override
	public FurnitureUser getUserInfoByName(String userAccount) {
		return userMapper.getUserInfoByName(userAccount);
	}

	@Override
	public int updateUserInfo(FurnitureUser user) {
		return userMapper.updateUserInfo(user);
	}

	@Override
	public int addOrderInfo(FurnitureOrder order) {
		return userMapper.addOrderInfo(order);
	}
}
